import { postRequest, getRequest } from '/@/lib/axios';

export const siordApi = {
  /**
   * 分页查询  @author  AKITA
   */
  queryPage: (param) => {
    return postRequest('/siord/queryPage', param);
  },

  /**
   * 增加  @author  AKITA
   */
  add: (param) => {
    return postRequest('/siord/add', param);
  },

  /**
   * 修改  @author  AKITA
   */
  update: (param) => {
    return postRequest('/siord/update', param);
  },

  /**
   * 删除  @author  AKITA
   */
  delete: (id) => {
    return getRequest(`/siord/delete/${id}`);
  },

  /**
   * 批量删除  @author  AKITA
   */
  batchDelete: (idList) => {
    return postRequest('/siord/batchDelete', idList);
  },

  info: (param) => {
    return getRequest('/siord/info/' + param);
  },

  infoUnexecute: (id) => {
    return getRequest(`/siord/infoUnexecute/${id}`);
  },
};
